package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.dto.CheckListBatchDTO;
import com.itheima.wms.entity.CheckListEntity;
import com.itheima.wms.vo.CheckListDetailVO;
import com.itheima.wms.vo.CheckListSumVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 业务接口
 * 盘点清单
 * </p>
 */
public interface CheckListService extends ICrudService<CheckListEntity> {

    Boolean saveBatchByStockIds(CheckListBatchDTO checkListBatchDTO);

    IPage<CheckListDetailVO> pageDetail(Page<CheckListDetailVO> page, Map data);

    CheckListSumVO getSumByMasterId(Long masterId);

    List<Long> stockIds(Map data);

    void cancelBatch(List<CheckListEntity> checkListEntities);
}
